package routers

import (
	"github.com/gin-gonic/gin"
	"shop-admin/controller"
	"shop-security/preAuthorize"
)

func privatePickAddr(router *gin.RouterGroup) {
	api := &controller.PickAddrController{}
	pickAddr := router.Group("/shop/pickAddr")
	{
		pickAddr.GET("/page", preAuthorize.HasPermission("shop:pickAddr:page"), api.Page)   //分页获取
		pickAddr.POST("", preAuthorize.HasPermission("shop:pickAddr:save"), api.Save)       //保存
		pickAddr.PUT("", preAuthorize.HasPermission("shop:pickAddr:update"), api.Update)    //修改
		pickAddr.DELETE("", preAuthorize.HasPermission("shop:pickAddr:delete"), api.Delete) //删除
	}
}
